<?php

$self = array(
	'name' => 'CFileStorage',

	'type' => 'collection',

	'fields' => array(
		array( 'name' => 'oid'          , 'type' => 'integer' , )              , 
		array( 'name' => 'path_to_file' , 'type' => 'string'  , 'size' => 255) , 
		array( 'name' => 'mime_type'    , 'type' => 'string'  , 'size' => 100) , 
		array( 'name' => 'file_size'    , 'type' => 'integer' , )              , 
		array( 'name' => 'real_fname'   , 'type' => 'string'  , 'size' => 255) , 
		array( 'name' => 'ext'          , 'type' => 'string'  , 'size' => 20)  , 
	),

	'indexes' => array(
		array('path_to_file'),
		array('mime_type'),
	),

	'primary_key' => array('oid'),

	'db' => array('name' => 'filestorage' ),

	'implement' => 'collections/collection.php#collection',
);

